////////////////////////////////////////////////////////////////////////////////
// Filename: ModelAnimation.h
////////////////////////////////////////////////////////////////////////////////
#ifndef _MODELANIMATION_H_
#define _MODELANIMATION_H_

#include <vector>
#include <map>

class ModelPosture;
class TiXmlElement;

class ModelAnimation
{
public:
	ModelAnimation();
	ModelAnimation(const ModelAnimation&);
	~ModelAnimation();

	void Initialize(TiXmlElement* modelAnimationElement);
	int GetFrameIndex(unsigned long mTimeStartAnimation, unsigned long mCurrentTime);
protected:
	int mId;
	int mDuration;
	std::string mName;
	std::vector<ModelPosture*> mPostures;

};

#endif